(Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Jun 1993 17:43:12 +0000 (17:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Jun 1993 17:43:12 +0000 (17:43 +0000)
src/editfns.c

index 69a045b83410ecb455f6bf01fd85c60c0596af71..e8b2a08c79f8707ee6740129a4d6968a73714191 100644 (file)
@@ -656,7 +656,12 @@ the data it can't find.")
 #ifdef HAVE_TM_ZONE
       if (t->tm_zone)
        s = t->tm_zone;
+#else /* not HAVE_TM_ZONE */
+#ifdef HAVE_TZNAME
+      if (t->tm_isdst == 0 || t->tm_isdst == 1)
+       s = tzname[t->tm_isdst];
 #endif
+#endif /* not HAVE_TM_ZONE */
       if (!s)
        {
          /* No local time zone name is available; use "+-NNNN" instead.  */